package com.richpencil.utils;

import java.math.BigDecimal;

public class RandObject {
	
	public float execute9Float(int minvalue,int maxvalue)
	{
		BigDecimal db = new BigDecimal(Math.random() * (maxvalue - minvalue) + minvalue);
		BigDecimal setScale = db.setScale(2, BigDecimal.ROUND_HALF_DOWN);
		return setScale.floatValue();
	}
	public String execute9String()
	{
		return String.valueOf(execute9Float(1,4));
	}
	public static void main(String args[])
	{
		RandObject a=new RandObject();
		for(int i=0;i<100;i++)
		{
			System.out.println(a.execute9String());
		}
	} 
	
}
